﻿using Microsoft.AspNet.Identity;
using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.Owin.Security.Cookies;
using Inovout.Web;
using Microsoft.Owin.Security.Inovout;

namespace KuaJing.LaiBa.JoinNow.WebPage
{
    public class MvcApplication : HttpApplication
    {
      
    }

    public class AccountApplication  : IApplicationConfiguration
    {
        public void Configure(IAppBuilder app)
        {
            // Enable Application Sign In Cookie
            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/SignIn")
            });
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
            app.UseInovoutAuthentication("7991fc71620944f983a2c64a6249d13a", "7991fc71620944f983a2c64a6249d13a", "DynamicPassword");
        }

     
    }
  
}
